<% if is_admin? %><!--ADMINS ONLY : START-->
  <div>
    <b>Access:</b>
    <%=h @user.access==1? "Admin":"Basic" %>
  </div>
<% end %><!--ADMINS ONLY : END-->

<div>
  <b>Name:</b>
  <%=h @user.name %>
</div>
<div>
  <b>Email:</b>
  <%=h @user.email %>
</div>

<% if is_admin? %><!--ONLY SHOW FOR ADMINS-->
  <div>
    <b>Created:</b>
    <%=h @user.created_at %>
  </div>
  <div>
    <b>Updated:</b>
    <%=h @user.updated_at %>
  </div>
<% end %><!--ADMINS ONLY : END-->
<br />